import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    path: '/Index',
    component: () => import('../views/Index')
  },
  {
    path: '/About',

    component: () => import('../views/About.vue')
  },
  {
    path: '/Setting',
    component: () => import('../views/Setting.vue')
  },
  {
    path: '*',
    redirect: '/Index'
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
